package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyCommentLike;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface StrategyCommentLikeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyCommentLike record);

    StrategyCommentLike selectByPrimaryKey(Long id);

    List<StrategyCommentLike> selectAll();

    int updateByPrimaryKey(StrategyCommentLike record);

    StrategyCommentLike queryExistLikeByUserIdAndStrategyCommentId(@Param("userId") Long userId, @Param("strategyCommentId") Long strategyCommentId);

    void insertStrategyCommentNum(@Param("userId") Long userId, @Param("strategyCommentId") Long strategyCommentId, @Param("l") long l);

    Long queryNumByStrategyCommentId(Long strategyCommentId);

    void delete(Long userId);

    void deleteStrategyCommentNum(@Param("userId") Long userId, @Param("strategyCommentId") Long strategyCommentId);

    Long queryForNumByStrategyCommentId(Long strategyCommentId);
}